Optimal. Leaf size=88 \[ \frac {a^4 \sin ^4(c+d x)}{4 d}+\frac {4 a^4 \sin ^5(c+d x)}{5 d}+\frac {a^4 \sin ^6(c+d x)}{d}+\frac {4 a^4 \sin ^7(c+d x)}{7 d}+\frac {a^4 \sin ^8(c+d x)}{8 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 88, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {2912, 12, 45}
\begin {gather*} \frac {a^4 \sin ^8(c+d x)}{8 d}+\frac {4 a^4 \sin ^7(c+d x)}{7 d}+\frac {a^4 \sin ^6(c+d x)}{d}+\frac {4 a^4 \sin ^5(c+d x)}{5 d}+\frac {a^4 \sin ^4(c+d x)}{4 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 45
Rule 2912
Rubi steps
\begin {align*} \int \cos (c+d x) \sin ^3(c+d x) (a+a \sin (c+d x))^4 \, dx &=\frac {\text {Subst}\left (\int \frac {x^3 (a+x)^4}{a^3} \, dx,x,a \sin (c+d x)\right )}{a d}\\ &=\frac {\text {Subst}\left (\int x^3 (a+x)^4 \, dx,x,a \sin (c+d x)\right )}{a^4 d}\\ &=\frac {\text {Subst}\left (\int \left (a^4 x^3+4 a^3 x^4+6 a^2 x^5+4 a x^6+x^7\right ) \, dx,x,a \sin (c+d x)\right )}{a^4 d}\\ &=\frac {a^4 \sin ^4(c+d x)}{4 d}+\frac {4 a^4 \sin ^5(c+d x)}{5 d}+\frac {a^4 \sin ^6(c+d x)}{d}+\frac {4 a^4 \sin ^7(c+d x)}{7 d}+\frac {a^4 \sin ^8(c+d x)}{8 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.63, size = 90, normalized size = 1.02 \begin {gather*} \frac {a^4 (36400-69720 \cos (2 (c+d x))+26460 \cos (4 (c+d x))-4200 \cos (6 (c+d x))+105 \cos (8 (c+d x))+87360 \sin (c+d x)-47040 \sin (3 (c+d x))+12096 \sin (5 (c+d x))-960 \sin (7 (c+d x)))}{107520 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.22, size = 70, normalized size = 0.80
method | result | size |
derivativedivides | \(\frac {\frac {a^{4} \left (\sin ^{8}\left (d x +c \right )\right )}{8}+\frac {4 a^{4} \left (\sin ^{7}\left (d x +c \right )\right )}{7}+a^{4} \left (\sin ^{6}\left (d x +c \right )\right )+\frac {4 a^{4} \left (\sin ^{5}\left (d x +c \right )\right )}{5}+\frac {a^{4} \left (\sin ^{4}\left (d x +c \right )\right )}{4}}{d}\) | \(70\) |
default | \(\frac {\frac {a^{4} \left (\sin ^{8}\left (d x +c \right )\right )}{8}+\frac {4 a^{4} \left (\sin ^{7}\left (d x +c \right )\right )}{7}+a^{4} \left (\sin ^{6}\left (d x +c \right )\right )+\frac {4 a^{4} \left (\sin ^{5}\left (d x +c \right )\right )}{5}+\frac {a^{4} \left (\sin ^{4}\left (d x +c \right )\right )}{4}}{d}\) | \(70\) |
risch | \(\frac {13 a^{4} \sin \left (d x +c \right )}{16 d}+\frac {a^{4} \cos \left (8 d x +8 c \right )}{1024 d}-\frac {a^{4} \sin \left (7 d x +7 c \right )}{112 d}-\frac {5 a^{4} \cos \left (6 d x +6 c \right )}{128 d}+\frac {9 a^{4} \sin \left (5 d x +5 c \right )}{80 d}+\frac {63 a^{4} \cos \left (4 d x +4 c \right )}{256 d}-\frac {7 a^{4} \sin \left (3 d x +3 c \right )}{16 d}-\frac {83 a^{4} \cos \left (2 d x +2 c \right )}{128 d}\) | \(135\) |
norman | \(\frac {\frac {128 a^{4} \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5 d}+\frac {5248 a^{4} \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{35 d}+\frac {5248 a^{4} \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{35 d}+\frac {128 a^{4} \left (\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5 d}+\frac {4 a^{4} \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {4 a^{4} \left (\tan ^{12}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {80 a^{4} \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {80 a^{4} \left (\tan ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {184 a^{4} \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{8}}\) | \(189\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 71, normalized size = 0.81 \begin {gather*} \frac {35 \, a^{4} \sin \left (d x + c\right )^{8} + 160 \, a^{4} \sin \left (d x + c\right )^{7} + 280 \, a^{4} \sin \left (d x + c\right )^{6} + 224 \, a^{4} \sin \left (d x + c\right )^{5} + 70 \, a^{4} \sin \left (d x + c\right )^{4}}{280 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 111, normalized size = 1.26 \begin {gather*} \frac {35 \, a^{4} \cos \left (d x + c\right )^{8} - 420 \, a^{4} \cos \left (d x + c\right )^{6} + 1120 \, a^{4} \cos \left (d x + c\right )^{4} - 1120 \, a^{4} \cos \left (d x + c\right )^{2} - 32 \, {\left (5 \, a^{4} \cos \left (d x + c\right )^{6} - 22 \, a^{4} \cos \left (d x + c\right )^{4} + 29 \, a^{4} \cos \left (d x + c\right )^{2} - 12 \, a^{4}\right )} \sin \left (d x + c\right )}{280 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.95, size = 95, normalized size = 1.08 \begin {gather*} \begin {cases} \frac {a^{4} \sin ^{8}{\left (c + d x \right )}}{8 d} + \frac {4 a^{4} \sin ^{7}{\left (c + d x \right )}}{7 d} + \frac {a^{4} \sin ^{6}{\left (c + d x \right )}}{d} + \frac {4 a^{4} \sin ^{5}{\left (c + d x \right )}}{5 d} + \frac {a^{4} \sin ^{4}{\left (c + d x \right )}}{4 d} & \text {for}\: d \neq 0 \\x \left (a \sin {\left (c \right )} + a\right )^{4} \sin ^{3}{\left (c \right )} \cos {\left (c \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.50, size = 71, normalized size = 0.81 \begin {gather*} \frac {35 \, a^{4} \sin \left (d x + c\right )^{8} + 160 \, a^{4} \sin \left (d x + c\right )^{7} + 280 \, a^{4} \sin \left (d x + c\right )^{6} + 224 \, a^{4} \sin \left (d x + c\right )^{5} + 70 \, a^{4} \sin \left (d x + c\right )^{4}}{280 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 8.45, size = 69, normalized size = 0.78 \begin {gather*} \frac {\frac {a^4\,{\sin \left (c+d\,x\right )}^8}{8}+\frac {4\,a^4\,{\sin \left (c+d\,x\right )}^7}{7}+a^4\,{\sin \left (c+d\,x\right )}^6+\frac {4\,a^4\,{\sin \left (c+d\,x\right )}^5}{5}+\frac {a^4\,{\sin \left (c+d\,x\right )}^4}{4}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________